<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group" hidden>
        <label class="control-label col-xs-12 col-sm-2">{:__('Module_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-module_id" data-rule="required" data-source="mw_module/index" class="form-control selectpage" name="row[module_id]" type="text" value="{$_GET['module_id']}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-description" class="form-control" name="row[description]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Input_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-input_type" class="form-control" name="row[input_type]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Output_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-output_type" class="form-control" name="row[output_type]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_quick_search')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_quick_search" class="form-control selectpicker" name="row[is_quick_search]">
                {foreach name="isQuickSearchList" item="vo"}
                <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_multiple')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_multiple" class="form-control selectpicker" name="row[is_multiple]">
                {foreach name="isMultipleList" item="vo"}
                <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Prompt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-prompt" placeholder="在前端添加页面字段后的提示语" class="form-control" name="row[prompt]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Placeholder')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-placeholder" placeholder="在前端添加页面字段中的占位符" class="form-control" name="row[placeholder]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Link')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-link" placeholder="暂无使用" class="form-control " rows="5" name="row[link]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Search')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-search" class="form-control selectpicker" name="row[search]">
                {foreach name="searchList" item="vo"}
                <option value="{$key}" {in name="key" value="="}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Search_rule')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-search_rule" class="form-control selectpicker" name="row[search_rule]">
                {foreach name="searchRuleList" item="vo"}
                <option value="{$key}" {in name="key" value="="}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Search_static')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-search_static" class="form-control " rows="5" name="row[search_static]" cols="50">{
	"option": "=",
	"value": "1"
}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Option')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-option" class="form-control " rows="30" name="row[option]" cols="50">{
	"type": "static",
	"data": [{
			"key": "enable",
			"value": "启用"
		},
		{
			"key": "disable",
			"value": "禁用"
		}
	]
}
或
{
	"type": "remote",
	"api": {
		"url": "http://192.168.199.105:9501/admin/role/getSelectPage",
		"format": {
			"key": "id",
			"value": "name"
		}
	}
}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
